package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.damain.Dish;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public interface DishService {
    //根据分页查询
    Page findByPage(Integer pagenum, Integer pageSize, String name);
//保存
    void save(Dish dish);
//查询


    Dish findByid(Long id);
//修改
    void update(Dish dish);
//删除
    void deleteByIds(List<Long> ids);



//用对象传停售和起售
void status(Integer status, List<Long> id);
}
